﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using YXQ.Dao.ViewModel;
using YXQ.Service;

namespace YXQ.Manager.Manager
{
    public partial class MessageDetail : BaseAdminPage
    {
        MessageModel model = new MessageModel();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                hfId.Value = reqID.ToString();

                GetMessage();
            }
        }

        private void GetMessage()
        {
            model = CenterService.messageService.GetOneById(reqID);
            if (model != null) {
                txtqname.Value = model.qname;
                txtcontent.Value = model.qcontent;
            }
        }
    }
}